//
//  MXHomeSubController.m
//  HNBaseProject
//
//  Created by xujie on 2024/6/5.
//

#import "MXHomeSubController.h"
#import "MxPublicNav.h"
#import "DCNoDataView.h"
@interface MXHomeSubController ()<MxNavigationViewDelegate>
@property (nonatomic, strong) MxPublicNav *nav;

@end

@implementation MXHomeSubController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self createUI];
}

- (void)createUI {
    self.nav = [[MxPublicNav alloc] initWithFrame:CGRectMake(0, 0, kScreenW, kNavBarHeight)];
    self.nav.delegate = self;
    [self.view addSubview:self.nav];
    
//    DCNoDataView *nodataV = [[DCNoDataView alloc] initWithFrame:CGRectMake(52, 200, kScreenW-104, 200) image:[UIImage imageNamed:@"fooder_notice"] button:@"" tip:@"敬请期待~"];
//    [self.view addSubview:nodataV];
    UIImageView *nodateV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"qidai"]];
    [self.view addSubview:nodateV];
    [nodateV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.mas_equalTo(self.view);
    }];
}

-(void)leftTap {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self dc_navBarHidden:YES];
}

@end
